Serial Protocol for Agile Sample Rate Switching

ABSTRACT

The invention provides a communication protocol and serial interface having an approximately fixed interface clock and capable of accommodating a variety of communication rates. The interface employs a variable-length frame that may be expanded or reduced to obtain a desired communication rate, even though the interface clock rate is held approximately constant. The invention further provides a method for designing an agile barrier interface. In particular, the barrier clock rate is preferably selected to be an approximate common multiple of the various communication rates that the barrier interface must handle. The frame length corresponding to each communication rate may then be obtained by dividing the barrier clock rate by the ΣΔ rate. Finally, the invention provides an agile barrier capable of communicating data across a serial interface at a variety of data rates and at an approximately fixed interface clock rate.

CROSS-REFERENCES

This application is a continuation-in-part of U.S. patent application Ser. No. 11/159,614 filed Jun. 23, 2005 and is also a continuation-in-part of U.S. patent application Ser. No. 11/159,537 filed Jun. 23, 2005, which are incorporated by reference in their entirety.

FIELD OF THE INVENTION

The present invention relates generally to digital communication between line-side and system-side circuits in a modem or digital access arrangement (“DAA”).

BACKGROUND

A modern modem 100, as illustrated in FIG. 1, typically includes a digital signal processor or microprocessor 102, a coder/decoder (“codec”) 132 for converting digital signals from the DSP 102 to an analog form capable of transmission over a telephone line and for converting analog signals from the telephone line to digital form, and high-voltage (“HV”) components 130 that interface with the telephone line. In order to isolate the DSP 102 from voltage fluctuations on the telephone line, the codec function is conventionally implemented via two circuits—a system-side interface circuit (“SSIC”) 106 and a line-side interface circuit (“LSIC”) 118, which communicate across an isolation barrier 117.

The SSIC 106 includes a system I/O interface 108 for communication with the DSP 102, a conventional sigma-delta modulator 112 for converting forward-going data signals to forward-going sigma-delta signals, a conventional integrator-based sigma-delta decoder circuit for decoding reverse-going sigma-delta signals into data signals, and an isolation barrier interface circuit 114 for transmitting and receiving sigma-delta signals to and from the LSIC 118 across the isolation barrier 117. The SSIC 106 may further include a protocol framing circuit 116, which functions to organize the data transmitted and received by the isolation barrier interface circuit 114, and a barrier clock controller 113 and associated voltage-controlled oscillator 115, which together form a variable-rate clock generator for generating the barrier clock signal.

The LSIC 118 includes an isolation barrier interface circuit 120, a line-side sigma-delta digital-to-analog converter (“DAC”) 126 whose output is connected to a transmit buffer 128, and a sigma-delta analog-to-digital converter (“ADC”) 122 whose input is connected to a receive buffer 124. The LSIC 118 may further include a conventional clock-and-data recovery circuit 125 to derive a local clock signal from the received signals from the isolation barrier. Each of isolation barrier interface circuits 114, 120 may be any suitable isolation barrier interface circuit for communication across an isolation barrier, such as that described in U.S. patent application Ser. Nos. 11/159,537 and 11/159,614 incorporated above.

Conventional modems typically also must accommodate a wide variety of communication rates. For example, a modem complying with the CCITT v.34 standard must be capable of communicating at a variable symbol rate (or baud rate) that may range from 2400 Hz-3429 Hz, as illustrated in Table 1 below.

TABLE 1 Sample rate ΣΔ Rate Application Symbol rate [Hz] [Hz] [MHz] V.34 2400 7200 1.8432 Audio N/A 8000 2.0480 V.34 2743 8228 2.1066 V.34 2800 8400 2.1504 V.34 3000 9000 2.3040 V.34 3200 9600 2.4576 V.34 3429 10287 2.6335 Audio/ N/A 11025 2.8224 optional

If the ADC sampling rate is selected to be factor of 3 times the symbol rate, the ADC 122 must have a sampling rate ranging from 7200 Hz-10,287 Hz (and as high as 11,025 Hz if the telephone signal is an analog audio signal rather than a digital modem signal). In addition, the sigma-delta (ΣΔ) rate is conventionally selected so that the analog signal is oversampled at a predetermined multiple (e.g., 256) times the sampling rate. As such, the sigma-delta ACD 122 must operate at a sigma-delta rate that ranges between 1.843 MHz and 2.822 MHz.

This wide range of the required sigma-delta rate (1.843 MHz-2.822 MHz) represents a design constraint on the barrier interface (the communication link formed by interface circuits 114 and 120 and isolation barrier 117). For successful full-duplex operation, during each ΣΔ sample interval, one forward ΣΔ sample and one reverse ΣΔ sample must be communicated across the isolation barrier between the SSIC 106 and the LSIC 118. In other words, the data rate of the barrier interface must be variable, depending on the sigma-delta rate.

The desired variable data rate for the barrier interface has conventionally been obtained by varying the barrier clock rate to obtain the desired data rate. In a simplified example, if the modem 100 establishes a v.34 communication with another modem at a symbol rate of 2,400 Hz (for which a ΣΔ rate of 1.843 MHz is needed), the DSP 102 or some other barrier clock controller 113 may set the barrier clock rate to a rate equal to two times 1.843 MHz, or 3.686 MHz, so that during each ΣΔ interval, at least one forward ΣΔ sample and one reverse ΣΔ sample may be transmitted across the barrier interface. In contrast, if the modem 100 establishes a v.34 communication at a symbol rate of 3,429 Hz (for which a ΣΔ rate of 2.634 MHz is needed, per Table 1), the barrier clock may be set to a rate of two times 2.634 MHz, or 5.268 MHz, again so that during each ΣΔ interval, at least one forward ΣΔ sample and one reverse ΣΔ sample may be transmitted across the barrier interface. Thus, the clock rate in this simplified example would have to be able to operate over the range from 3.686 MHz to 5.268 MHz (i.e., an increase of 42%) to accommodate the full range of v.34 symbol rates. Moreover, the barrier clock rate would have to be correspondingly increased if control and status information was to be communicated during each ΣΔ interval.

Unfortunately, this conventional technique of varying the barrier clock as a function of the symbol rate or sigma-delta rate causes at least two difficulties. First, if the LSIC 118 derives its local clock from the barrier signals via a clock recovery circuit, the clock recovery circuit loses synchronism with the barrier signals each time the barrier clock changes. Until the clock recovery circuit re-acquires the new clock rate, the SSIC 106 and the LSIC 118 are unable to communicate. Second, the clock generating circuit in the SSIC 106 and the clock recovery circuit in the LSIC 118 are relatively complicated and expensive, because they must accommodate the entire range of clock rates across the barrier.

SUMMARY OF THE INVENTION

Having identified the above difficulties associated with a variable-clock-rate barrier interface, the present inventors developed an innovative communication protocol and barrier interface having an approximately fixed barrier clock and capable of accommodating a variety of symbol rates, sampling rates and/or sigma-delta rates (collectively, “communication rates”). More particularly, the invention employs a variable-length frame that may be expanded or reduced to reach a desired communication rate, even though the barrier clock rate is held approximately constant. Each master frame preferably includes a fixed-length data portion and a variable-length dummy portion. For a fast communication rate, the variable-length dummy portion may be small, such that the overall frame length is small and many frames may be transmitted during a given time period. For a slow communication rate, the variable-length dummy portion may be large, such that the overall frame length is large and only a few frames may be transmitted during the same time period. Thus, the minimum frame length corresponds to the fastest communication rate, while the maximum frame length corresponds to the slowest communication rate.

The invention further provides a method for designing an agile barrier interface. In particular, the barrier clock rate is preferably selected to be an approximate common multiple of the various communication rates that the barrier interface must handle. The frame length corresponding to each communication rate may then be obtained by dividing the barrier clock rate by the ΣΔ rate.

Finally, the invention provides an agile communication circuit capable of communicating data across a serial interface at a variety of data rates and at an approximately fixed interface clock rate.

BRIEF DESCRIPTION OF THE DRAWINGS

Various embodiments of the present invention will now be described in detail in conjunction with the annexed drawings, in which:

FIG. 1 is a block diagram depicting a communication circuit suitable for use in the invention;

FIG. 2 is a timing diagram depicting a communication protocol using a variable-length frame in accordance with the invention; and

FIG. 3 is a timing diagram depicting a further communication protocol for balancing the flux of the isolation barrier over consecutive frames in accordance with the invention.

DETAILED DESCRIPTION

As described above, the invention employs a variable-length frame that may be expanded or reduced to reach a desired communication rate notwithstanding an approximately fixed barrier clock. An exemplary communication protocol using such a frame is depicted in FIG. 2. Padded frame 220 includes a basic frame 222 (i.e., the fixed-length data portion) and a number of padding bits 230 (the variable-length dummy portion).

The specific composition of the basic frame 222 will depend on whether the barrier interface has only a single serial communication link or multiple communication links. FIG. 2 depicts an example of the former case, in which the barrier interface is a single serial communication link over which both forward- and reverse-going sigma-delta data and forward- and reverse-going control information is to be transmitted during each master frame. In the frame shown in FIG. 2, therefore, the SSIC 106 transmits during time slots 201-208 and the LSIC 118 transmits during time slots 209-212.

In order to preserve the flux-balance in the isolation barrier, each transmitted bit is preferably Manchester encoded using a conventional encoder. That is, a “0” bit is encoded as the two-bit sequence 01 and a “1” bit is encoded as the two-bit sequence 10. It should be understood that if flux-balance is not a design concern (e.g., where the isolation barrier is a capacitive barrier), such encoding is not required.

As shown in FIG. 2, the basic frame 222 preferably includes:

(1) a forward data bit during time slots 201 and 202 (shown Manchester-encoded as DF, followed by NOT DF), transmitted by SSIC 106;

(2) a forward control bit during time slots 203 and 204 (shown as CF, NOT CF), transmitted by SSIC 106;

(3) a predetermined forward framing sequence 326 during time slots 205-208 (shown as NOT CF, NOT CF, CF, CF) (transmitted by either SSIC 106 or LSIC 118);

(4) a reverse data bit during time slots 209 and 210 (shown as DR, NOT DR), transmitted by LSIC 118; and

(5) a reverse control bit during time slots 211 and 212 (shown as CR, NOT CR), transmitted by LSIC 118.

It will be recognized, however, that if multiple communication links are available, then the barrier interface can be simplified by making the links uni-directional. If so, then the basic frame may be reduced to the sigma-delta data, control and forward framing sequence for a single direction (i.e., forward or reverse).

The forward framing sequence may be any unique sequence of bit values that may be used to identify where a frame starts and/or ends. For example, in the protocol shown in FIG. 2, the inverse control bit (NOT CF) in time slot 204 is repeated twice thereafter, in time slots 205 and 206. This thrice-repeated value provides a unique synchronization (“sync”) pattern that may readily be identified, insofar as Manchester encoded signals (01, 10) ordinarily do not result in a three-time-slot sequence of the same values. A suitable detection circuit for this sync pattern may be implemented, for example, via a three-bit shift register, where each bit in the register is provided to a 3-input AND gate that outputs a signal when the thrice-repeated value is detected. Other frame detection techniques may also be used in lieu of the sync pattern described above. For example, a large buffer may be used to store incoming data, and the buffered data may then be statistically analyzed by a microprocessor to determine the framing, in accordance with techniques known in the art.

Padded frame 220 preferably also includes dummy or padding bits 230, which may be added or removed to adjust the frame size. In this way, a wide variety of data rates may be accommodated without altering the clock rate of the SSIC 180 and the LSIC 182. By way of example, six padding bits (e.g., 0, 1, 0, 1, 0, 1), of alternating values in order to achieve flux balance, are depicted in time slots 213-218. These padding bits may be provided by either the SSIC 106 or the LSIC 118 after the interface has been initialized.

FIG. 3 illustrates how an odd number of padding bits may be accommodated without disrupting the flux balance of the isolation barrier. In essence, the flux of the padding bits is balanced over two consecutive frames, Frame k and Frame k+1 by using alternating sequences of 0's and 1's. For example, if frame k contains the padding bit sequence [01010], frame k+1 may contain the sequence [10101].

The invention further provides a method for designing an agile barrier interface. In accordance with the invention, a designer selects a barrier clock rate that is an approximate common multiple of the various data rates that the barrier interface must handle. The designer may then calculate the frame length corresponding to each data rate, by dividing the barrier clock rate by the sigma-delta rate. By way of example and not of limitation, Table 2 below illustrates exemplary frame lengths and barrier clock frequencies calculated for a barrier interface capable of handling sample rates of 7200, 8000, 8229, 8400, 9000, 9600, 10,287, and 11,025 Hz, where the sigma-delta rate is selected to be 256 times the sample rate.

TABLE 2 Frame Symbol Sample ΣΔ Rate Length Barrier Clock Application rate [Hz] rate [Hz] [MHz] [bits] [MHz] V.34 2400 7200 1.8432 18 33.1776 Audio N/A 8000 2.0480 16 32.7680 V.34 2743 8228 2.1066 16 33.7056 V.34 2800 8400 2.1504 15 32.2560 V.34 3000 9000 2.3040 14 32.2560 V.34 3200 9600 2.4576 14 34.4064 V.34 3429 10287 2.6335 13 34.2355 Audio/ N/A 11025 2.8224 12 33.8688 optional

As reflected in Table 2, one of the approximate common multiples of the above sigma-delta rates (i.e., 1.843-2.822 MHz) is about 33.3 MHz, which is taken as the approximately fixed barrier clock rate. Given the approximately fixed frame barrier clock rate of about 33.3 MHz, the frame length corresponding to each sigma-delta rate may be calculated by dividing the sigma-delta rate into the frame barrier clock frequency. For example, the frame length corresponding to the highest-frequency sigma-delta rate, 2.822 MHz, is calculated as 33.3 MHz/2.822 MHz, or 11.8 clock cycles, which may be rounded up to 12 clock cycles, as shown in Table 2. Similarly, the frame length corresponding to the lowest-frequency sigma-delta rate, 1.843 MHz, is calculated as 33.3 MHz/1.843 MHz, yielding 18.1 clock cycles, which may be rounded down to 18 clock cycles to obtain the frame length corresponding to the 1.843 MHz sigma-delta rate.

TABLE 3 Frame Symbol Sample ΣΔ Rate Length Barrier Clock Application rate [Hz] rate [Hz] [MHz] [bits] [MHz] V.34 2400 7200 1.8432 20 36.864 Audio N/A 8000 2.0480 18 36.864 V.34 2743 8228 2.1066 17 35.813 V.34 2800 8400 2.1504 17 36.557 V.34 3000 9000 2.3040 16 36.864 V.34 3200 9600 2.4576 15 36.864 V.34 3429 10287 2.6335 14 36.869 Audio/ N/A 11025 2.8224 13 36.691 optional

Table 3 illustrates an example in which a different approximate common multiple of the above sigma-delta rates is selected to be the approximately fixed barrier clock rate—namely, about 36 MHz. Given the approximately fixed frame barrier clock rate of about 36 MHz, the frame length corresponding to each sigma-delta rate is calculated by dividing the sigma-delta rate into the frame barrier clock rate. Thus, the frame length corresponding to the highest-frequency sigma-delta rate, 2.822 MHz, is calculated as 36 MHz/2.822 MHz, yielding 13 clock cycles. Similarly, the frame length corresponding to the lowest-frequency sigma-delta rate, 1.843 MHz, is calculated as 36 MHz/1.843 MHz, yielding 20 clock cycles.

The method for designing the barrier interface may further include adjusting the approximately fixed barrier clock rate for each sigma-delta rate, whereby rounding errors that are introduced during the selection of the frame length may be corrected. More specifically, after the selection of the approximately fixed barrier clock rate and the frame lengths corresponding to the various sigma-delta rates, a customized barrier clock rate may be selected for each sigma-delta rate, by multiplying each delta sigma rate by its corresponding frame length. Thus, for the example of Table 2, the customized barrier clock rate for a 1.843 MHz sigma-delta rate, with a length of 18 cycles, may be calculated as 33.1776 MHz. Similarly, the customized barrier clock rate for a 2.822 MHz delta sigma rate and a frame length of 12 cycles is 33.8688 MHz. Customized barrier clock rates may be similarly calculated for the remaining sigma-delta rates shown in Table 2. It may be seen from Table 2 that a barrier interface capable of transmitting information at symbol rates including 2400, 2743, 2800, 3000, 3200, and 3429 will preferably be capable of operation at the corresponding customized barrier clock rates shown in Table 2, which range between about 32 MHz and about 35 MHz. The customized barrier clock rates shown in Table 3 may be calculated in a similar manner, resulting in customized barrier clock rates of between about 35 MHz and about 37 MHz.

The invention further provides an agile communication circuit capable of communicating data across a serial interface at a variety of data rates and at an approximately fixed interface clock rate. Such a communication circuit may be implemented using conventional modem or DAA components as shown in FIG. 1 and as described above in the Background section. In particular, modem processor/DSP 102 includes a circuit and/or software of a type well-known to those of ordinary skill in the art of modem design for selecting a communication rate (e.g., a desired symbol rate, sample rate, or sigma-delta rate). The SSIC 106 includes a system I/O interface 108 for communicating with the DSP 102, a conventional sigma-delta modulator 112 for converting forward-going data signals to forward-going sigma-delta signals, a conventional integrator-based sigma-delta decoder circuit for decoding reverse-going sigma-delta signals into data signals, and an isolation barrier interface circuit 114 for transmitting and receiving sigma-delta signals to and from the LSIC 118 across the isolation barrier 117. The SSIC 106 further includes a protocol framing circuit 116, which buffers and organizes the data transmitted and received by the isolation barrier interface circuit 114. The SSIC 106 further includes a variable-rate clock generator comprising barrier clock controller 113 and associated voltage-controlled oscillator 115, for generating a variable-rate barrier clock signal.

The LSIC 118 includes an isolation barrier interface circuit 120, a line-side sigma-delta digital-to-analog converter (“DAC”) 126 whose output is connected to a transmit buffer 128, and a sigma-delta analog-to-digital converter (“ADC”) 122 whose input is connected to a receive buffer 124. The LSIC 118 may further include a clock-and-data recovery circuit 125 to derive a local clock signal from the signals received across the isolation barrier.

The agile communication circuit described above operates as follows. First, modem processor/DSP 102 selects a frame length and interface clock rate for the digital isolation barrier based on a desired communication rate (i.e., modem symbol rate, sample rate, or sigma-delta rate)—e.g., by looking up the frame length and interface clock rate in a look-up table. Modem processor/DSP 102 then communicates the selected interface clock rate to the barrier clock controller 113 in SSIC 106. The barrier clock controller 113 receives the selected interface clock rate and outputs a corresponding analog signal to the voltage controlled oscillator 115. Based on this analog signal, the voltage-controlled oscillator produces a digital clock signal that may be used in interface circuit 114 as the isolation barrier clock.

Modem processor/DSP 102 also communicates the selected frame length to the framer circuit 116 in interface circuit 114. The framer circuit buffers data from modem processor/DSP 102 and packages the buffered data into frames having the selected frame length, by inserting an appropriate number of padding bits at the end of each basic frame.

The present invention provides a number of advantages over prior art isolation barrier interfaces. In particular, both the voltage-controlled oscillator in the system-side interface circuit that generates the barrier clock and the clock-and-data recovery circuit on the line-side interface circuit are enabled to run at an approximately fixed frequency. Both can stay locked to the approximately fixed frequency even when the sample rate changes. Moreover, because they only need to operate over a relatively small frequency range, they can be optimized for low-jitter performance. Finally, the sigma-delta clock in the line-side circuit may be derived directly from the frame synchronization pulse.

Having thus described a few particular embodiments of the invention, various alterations, modifications, and improvements will readily occur to those skilled in the art. Such alterations, modifications and improvements as are made obvious by this disclosure are intended to be part of this description though not expressly stated herein, and are intended to be within the spirit and scope of the invention. Accordingly, the foregoing description is by way of example only, and not limiting. The invention is limited only as defined in the following claims and equivalents thereto. 

1. A communication circuit for communicating data across a transmission medium at two or more communication rates, the communication circuit comprising: a variable-rate interface circuit adapted to transmit or receive signals via the transmission medium at an interface clock rate that is (i) about equal to an approximate common multiple of the two or more communication rates and (ii) not equal to an exact common multiple of the two or more communication rates.
 2. The communication circuit of claim 1, wherein the two or more communication rates are symbol rates selected from the group consisting of 2400, 2743, 2800, 3000, 3200, and 3429 symbols per second.
 3. The communication circuit of claim 1, wherein the two or more communication rates are sample rates selected from the group consisting of 7200, 8000, 8229, 8400, 9000, 9600, 10287, and 11025 samples per second.
 4. The communication circuit of claim 1, where the two or more communication rates are sigma-delta rates selected from the group consisting of 1.843, 2.048, 2.107, 2.150, 2.204, 2.458, 2.634, and 2.822 MHz.
 5. The communication circuit of claim 1, wherein the approximate greatest common denominator of the two or more communication rates is one of about 33.3 MHz and about 36 MHz.
 6. The communication circuit of claim 1, further comprising: a framer circuit connected to the interface circuit and adapted to produce a plurality of frames, each frame corresponding to at least one of the two or more communication rates and having a frame length.
 7. The communication circuit of claim 6, wherein the frame length for each of the plurality of frames is an integer number that is about equal to a value obtained by dividing the approximate common multiple of the two or more communication rates by the respective communication rate.
 8. The communication circuit of claim 7, wherein the frame length for each of the plurality of frames is one of (i) between about 12 and about 18 clock cycles and (ii) between about 13 and about 20 clock cycles.
 9. The communication circuit of claim 6, further comprising an adjustable clock generator connected to the interface circuit and adapted to produce two or more customized interface clock rates respectively corresponding to the two or more communication rates, wherein each customized interface clock rate is about equal to the rate obtained by multiplying a corresponding communication rate by its corresponding frame length.
 10. The communication circuit of claim 9, wherein the two or more customized interface clock rates are within one of (i) the range of about 32 MHz to about 35 MHz and (ii) the range of about 35 MHz to about 37 Mhz.
 11. The communication circuit of claim 10, wherein the two or more customized interface clock rates are selected from one of (i) the group consisting of 33.1776, 32.7680, 33.7056, 32.2560, 34.4064, 34.2355, and 33.8688 MHz and (ii) the group consisting of 36.864, 36.864, 35.813, 36.557, 36.864, 36.864, 36.869 and 36.691 MHz.
 12. A method for communicating data at multiple communication rates over an interface, comprising the steps of: transmitting over the interface, at a first communication rate, a first frame including a first datum and a first quantity of padding bits corresponding to the first communication rate, at an approximately fixed interface clock rate; and transmitting over the interface, at a second communication rate different than the first communication rate, a second frame including a second datum and a second quantity of padding bits different than the first quantity of padding bits corresponding to the second communication rate, at the approximately fixed interface clock rate, whereby the first datum is communicated at a rate corresponding to the first communication rate and the second datum is communicated at a rate corresponding to the second communication rate.
 13. The interface circuit of claim 12, wherein each of the first and second communication rates is a symbol rate selected from the group consisting of 2400, 2743, 2800, 3000, 3200, and 3429 symbols per second.
 14. The interface circuit of claim 12, wherein each of the first and second communication rates is a sample rate selected from the group consisting of 7200, 8000, 8229, 8400, 9000, 9600, 10287, and 11025 samples per second.
 15. The interface circuit of claim 12, wherein each of the first and second communication rates are sigma-delta rates selected from the group consisting of 1.843, 2.048, 2.107, 2.150, 2.204, 2.458, 2.634, and 2.822 MHz.
 16. The method of claim 12, wherein the approximately fixed interface clock rate is adjustable within one of (i) the range from about 32 MHz to about 35 MHz, and (ii) the range from about 35 MHz to about 37 MHz.
 17. The method of claim 12, wherein the approximately fixed interface clock rate is selected from one of (i) the group consisting of 33.1776, 32.7680, 33.7056, 32.2560, 34.4064, 34.2355, and 33.8688 MHz and (ii) the group consisting of 36.864, 36.864, 35.813, 36.557, 36.864, 36.864, 36.869 and 36.691 MHz.
 18. The method of claim 12, wherein the first and second frames further include a framing sequence.
 19. The method of claim 18, wherein: the first and second datum are Manchester-encoded; and the framing sequence comprises three consecutive bits of same value during three consecutive clock cycles at the approximately fixed interface clock rate.
 20. The method of claim 12, wherein each of the first quantity of padding bits and the second quantity of padding bits is one of (i) an integer number between 0 and 6, and (ii) and integer number between about 0 and
 7. 